package utils;

import java.util.Comparator;

import problem.Heuristic;

import utils.AiSearch.AiNode;

public class GreedyComperator implements Comparator<AiNode>{

	@Override
	public int compare(AiNode o1, AiNode o2) {
		
		return Heuristic.getHeuristic(o1.copiedWorld,o1.c)-Heuristic.getHeuristic(o2.copiedWorld,o2.c);
	}
	
}
